<script setup>
    import CommonAside from '@/components/CommonAside.vue';
    import CommomHeader from '@/components/CommonHeader.vue';
    import CommonTab from '@/components/CommonTab.vue';
</script>

<template>
      <div class="common-layout">
        <el-container class="lay-container">
            <!-- 自定义左侧组件 -->
            <CommonAside></CommonAside>

            <!-- 右侧 头 ＋ 主要展示区 -->
            <el-container>
                <!-- 头部 -->
                <el-header class="el-header">
                <CommomHeader></CommomHeader>
                </el-header>
                
                <!-- 头与展示区中间放tab -->
                <CommonTab></CommonTab>

                <!-- main 内容展示区 -->
                <el-main class="right-main">
                    <RouterView></RouterView>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<style scoped lang="less">
.common-layout, .lay-container{
  height: 100%;
}
.el-header{
  background-color: #333;
}
</style>
